/<template>
  <div class="lunbo">
    <!-- <div class="item" v-for="(item, index) in data" :key="index">
      <img :src="item.img" alt="" />
      <h4>{{ item.title }}</h4>
      <b>{{ item.num }}人想看</b>
      <p>{{ item.date }}</p>
    </div> -->
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item>
                <van-grid>
                     <van-grid-item icon="photo-o" text="文字"/>
                    <van-grid-item icon="photo-o" text="文字" />
                    <van-grid-item icon="photo-o" text="文字" />
                    <van-grid-item icon="photo-o" text="文字" />
                </van-grid>
            </van-swipe-item>
            <van-swipe-item>
                 <van-grid>
                    <van-grid-item icon="photo-o" text="文字" />
                    <van-grid-item icon="photo-o" text="文字" />
                    <van-grid-item icon="photo-o" text="文字" />
                    <van-grid-item icon="photo-o" text="文字" />
                </van-grid>
            </van-swipe-item>
        </van-swipe>
  </div>
</template>

<script>
export default {
  props: ["data"],
};
</script>

<style lang="scss">
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
.lunbo {
  width: 100%;
  height: 200px;
  border: 1px solid #000;
  display: flex;
  justify-content: space-between;
  overflow-x: scroll;
  .item {
    width: 100px;
    height: 200px;
    border: 1px solid #000;
    margin-left: 10px;
  }
}
</style>